<?php
namespace Common\Controller;
use Think\Controller;
class QianController extends Controller {//前端集成控制器，控制每个前端页面的线圈操作；

       public function _initialize(){
				$user_id=session('user_id');
				$username=session('username');
				$this->assign('username',$username);
				$this->assign('user_id',$user_id);
				if($user_id<1){
					$act=$this->act=U('Login/LoginForm');
					$this->error('亲！请先登录',$act);
				}       			
      	}			
   }


